package com.jinke.api.modules.third.carryship.model.request;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * 请求参数类
 */

@Data
@JsonSerialize
public class CreateOrderRequest {
    private String reference;
    private Address getInfo;
    private Address sendInfo;
    private List<Package> packages;
    private ConfirmChannels confirmChannels;
    @Data
    public static class Address {
        private String name;
        private String company;
        private String country;
        private String province;
        private String city;
        private String address1;
        private String address2;
        private String postalCode;
        private String phone;
    }

    @Data
    public static class Package {
        private String fba;
        private BigDecimal quantity;
        private BigDecimal weight;
        private String weightUnit;
        private BigDecimal length;
        private BigDecimal width;
        private BigDecimal height;
        private String sizeUnit;
    }
    @Data
    public static class ConfirmChannels {
        private String channelsCode;
    }

}

